<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1 style="text-align: center">张繁荣</h1>
    <script src="js/echarts.min.js"></script>
    <div id="main" style="width: 500px; height: 500px"></div>
    <script>
      var myChart = echarts.init(document.getElementById("main"));
      console.log(myChart);
      var option = {
        xAxis: [{}, {}],
        yAxis: [{}, {}],
        series: [
          {
            type: "bar",
            name: "bar-string",
            data: [0, 1, 2, 3, 4, 5],
            xAxisIndex: 1,
            yAxisIndex: 0,
          },
          {
            type: "line",
            name: "line-number",
            data: [7, 8, 3, 9, 10],
            xAxisIndex: 1,
            yAxisIndex: 0,
          },
        ],
      };
      myChart.setOption(option);
    </script>
  </body>
</html>